package com.wangcanxuan.www.entity.po;

import com.wangcanxuan.www.annotation.orm.Column;
import com.wangcanxuan.www.annotation.orm.PrimaryKey;
import com.wangcanxuan.www.annotation.orm.Table;

import java.sql.Timestamp;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 通知实体类与数据库notice表一一映射
 *
 * @author HHLJ
 * @date 2022/03/15
 */
@Table(tableName = "notice")
public class Notice {
    @PrimaryKey
    @Column(columnName = "id",description = "主键")
    private String id;

    @Column(columnName = "notice_type",description = "通知类别")
    private String noticeType;

    @Column(columnName = "content",description = "通知内容")
    private String content;

    @Column(columnName = "create_time",description = "创建时间")
    private LocalDateTime createTime;

    @Column(columnName = "user_id",description = "被通知者（用户表id）")
    private String userId;

    public Notice() {
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getNoticeType() {
        return noticeType;
    }

    public void setNoticeType(String noticeType) {
        this.noticeType = noticeType;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }
}
